<?php

/**
 * 打单系统 Ordering Software
 *
 * (c) cighsen02 <xiayu@959602.com>
 *
 * Create at：2025.05.08
*/

namespace App\Http\Controllers\Auth;

use App\Http\Controllers\Controller;
use Illuminate\Http\JsonResponse;
use Illuminate\Http\Request;

/**
 * Summary of DashboardController
 */
class DashboardController extends Controller
{
    /**
     * 会员面板
     *
     * @param Request $request
     * @param string $accountType
     * @return JsonResponse
     */
    public function dashboard(Request $request, string $accountType): JsonResponse
    {
        $user = $request->user();
        // $user = $user->load('add');
        $user->getAllPermissions();

        return $this->sendResponse($user, 'success');
    }
}
